package com.wicket.okrapp.biz.service.dto.common;


import com.wicket.okrapp.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;



/**
 * @desc CycleTimeRuleDto
 * @使用场景
 */
@Data
public class CycleTimeRuleDto extends BaseDto implements Serializable {

    /**
     * 时段规则ID:
     */
    @ApiModelProperty("时段规则ID")
    private String timeRuleId;

    /**
     * 时段规则标识:
     */
    @ApiModelProperty("时段规则标识")
    private String timeRuleCode;

    /**
     * 时段规则名称:
     */
    @ApiModelProperty("时段规则名称")
    private String timeRuleName;

    /**
     * 主体生命周期:
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    /**
     * 操作人就职记录ID:
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;

    /**
     * 操作时间:
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;
/**
     * 是否存档
     */
    @ApiModelProperty("是否存档")
    private String	 isArchive;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      CycleTimeRuleDto that = (CycleTimeRuleDto) o;
      return  timeRuleId == that.timeRuleId&&timeRuleCode == that.timeRuleCode&&timeRuleName == that.timeRuleName&&subjectLifeCycle == that.subjectLifeCycle&&operationInductionId == that.operationInductionId&&operateTime == that.operateTime&&isArchive == that.isArchive;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), timeRuleId,timeRuleCode,timeRuleName,subjectLifeCycle,operationInductionId,operateTime,isArchive);
    }

}
